package com.woniuxy.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.entity.DTO.ArticleUserDTO;
import com.woniuxy.entity.RelArticleType;

import java.util.List;

/**
* @author nanqiao
* @description 针对表【rel_article_type】的数据库操作Service
* @createDate 2025-07-12 14:22:57
*/
public interface RelArticleTypeService extends IService<RelArticleType> {
    /**
     * 根据 typeId 查询关联的帖子及其用户信息
     */
    List<ArticleUserDTO> getArticlesByTypeId(Integer typeId);

    void addRelations(Long articleId, List<Integer> typeIds);

}
